package gl.common;

import gl.uitls.Lg;
import android.text.TextUtils;

public class UserManger {
	public String token;
	public UserInfo userinfo;
	public String username;
	public String userid = "162000";
	public String tel;
	public String password;
	public String expandname;
	public String expandurl;
	public String HONGNIANG_TEL="133";
	private UserManger() {
		System.out.println("init UserManger");
		// EventBus.getDefault().register(this);
	};

	protected void clear() {
		// EventBus.getDefault().unregister(this);
	}

	private static class SingletonHolder {
		private static final UserManger INSTANCE = new UserManger();
	}

	public static UserManger getInstance() {
		return SingletonHolder.INSTANCE;
	}

	public boolean checkToken() {
		if (TextUtils.isEmpty(token)) {
			Lg.i("http", "token is null");
			return false;
		} else {
			return true;
		}

	}
}
